home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PCMania 19
/
PCMania19.iso
/
Jogos em Flash
/
CARTAS
/
LET_IT_RIDE.SWF
/
scripts
/
DefineButton2_40
/
BUTTONCONDACTION on(release).as
Wrap
Text File
|
2002-05-07
|
4KB
|
152 lines
on(release){
if(tOff == "0")
{
if(hsdplay == "1")
{
if(BoDeal == "1")
{
if(OnMax == "3")
{
Credits += creditsPlayed / "3";
creditsPlayed -= creditsPlayed / "3";
OnMax = "2";
tellTarget("/cr1")
{
play();
}
if(chipRow >= "2")
{
tellTarget("/cr2")
{
play();
}
}
if(chipRow >= "3")
{
tellTarget("/cr3")
{
play();
}
}
if(chipRow >= "4")
{
tellTarget("/cr4")
{
play();
}
}
if(chipRow == "5")
{
tellTarget("/cr5")
{
play();
}
}
}
}
if(BoDeal == "2")
{
if(OnMax == "3")
{
Credits += creditsPlayed / "3";
creditsPlayed -= creditsPlayed / "3";
tellTarget("/betonme")
{
gotoAndStop("2left");
}
tellTarget("/cr1")
{
play();
}
if(chipRow >= "2")
{
tellTarget("/cr2")
{
play();
}
}
if(chipRow >= "3")
{
tellTarget("/cr3")
{
play();
}
}
if(chipRow >= "4")
{
tellTarget("/cr4")
{
play();
}
}
if(chipRow == "5")
{
tellTarget("/cr5")
{
play();
}
}
}
if(OnMax == "2")
{
Credits += creditsPlayed / "2";
creditsPlayed -= creditsPlayed / "2";
tellTarget("/betonme")
{
gotoAndStop("1left");
}
tellTarget("/cr1")
{
play();
}
if(chipRow >= "2")
{
tellTarget("/cr2")
{
play();
}
}
if(chipRow >= "3")
{
tellTarget("/cr3")
{
play();
}
}
if(chipRow >= "4")
{
tellTarget("/cr4")
{
play();
}
}
if(chipRow == "5")
{
tellTarget("/cr5")
{
play();
}
}
}
}
hsdplay = "0";
tellTarget("/setcards")
{
play();
}
tellTarget("/b-stand")
{
gotoAndStop(2);
}
tellTarget("/b-hit")
{
gotoAndStop(2);
}
tellTarget("/b-deal")
{
gotoAndStop(2);
}
}
}
}